function f(c) {

    c.reset();

    //载入jController
    var ctl = c.loadJs('jController');
    c.defineController(//定义接口
        {
            path:'/japi/{name}/{func}',
            method: '*',
            handle: function (p) {
                return ctl(p.variable.name,p.variable.func,p)
            }
        }
    );

    //定义静态资源
    var res = c.loadJs('resource');
    c.defineController(
        {
            path: '/**',
            handle:function (p) {
                res(p.path, p);
            }
        }
    );

    //定义首页静态文件
    c.defineController({
        path: '/',
        handle: function (p) {
            print('请求主页'+new Date().getTime());
            res('/home.html', p);
        }
    });

    //定义图标
    c.defineController({
        path: '/favicon.ico',
        handle: function (p) {
            res('app.ico', p);
        }
    });

    c.defineController({
        path: '/test',
        handle: function (p) {
            print('处理请求:' + p.header.num);
            return '返回:'+p.header.num
        }
    })

}